package com.zhao.dota.security.token;

import java.time.LocalDateTime;
import java.util.Map;
import java.util.Set;

public interface AccessToken {

    /**
     * The access token issued by the authorization server. This value is REQUIRED.
     */
     String ACCESS_TOKEN = "access_token";

     String EXPIRES_IN = "expires_in";

     String REFRESH_TOKEN = "refresh_token";

     String SCOPE = "scope";

    /**
     * 附加信息
     */
    Map<String, Object> getAdditionalInformation();

    Set<String> getScope();

    String getRefreshToken();

    String getTokenType();

    boolean isExpired();

    LocalDateTime getExpiration();

    int getExpiresIn();

    String getValue();

    int getTimeout();

}
